<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title></title>
		<style>
			[v-cloak]{
				display: none;
			}
		</style>
		<script src="./src/vue.js"></script>
	</head>

	<body>
		<div id="app">
			<div @click="parentTest">
				<button @click.stop="test">按钮</button>
				<a @click.prevent.stop href="http://www.miaov.com">miaov</a>
			</div>
		</div>
		<script>
			/*
				v-on 绑定事件
					简写为@
				事件修饰符
					v-on:click.修饰符 = '表达式'


			*/

			new Vue({
				el:'#app',
				data: {
					arr: [1,2,3]
				},
				methods: {
					test(ev){
						console.log('children');
						//ev.stopPropagation();
					},
					parentTest () {
						console.log('parentTest');
					}
				}
			})


		</script>
	</body>
</html>